const modulesFiles = import.meta.glob("./modules/**/*.jsx", { eager: true });
//模块化
const modules = {};
for (const key in modulesFiles) {
  modules[key.replace(/^\.\/(.*)\.\w+$/, "$1")] = modulesFiles[key].default;
}
export let service = {};
for (const key in modules) {
  service = { ...service, ...modules[key] };
}
export default service;
